package com.ccrfid.rmc6.repository.business.prison.patrolcheck;

import com.ccrfid.rmc6.entity.business.prison.patrolcheck.PatrolCheckPlanTimeEntity;
import org.springframework.data.repository.Repository;

import java.sql.Time;
import java.util.List;

public interface PatrolCheckPlanTimeRepository extends Repository<PatrolCheckPlanTimeEntity, Long> {

    PatrolCheckPlanTimeEntity getByPlanTime(Time planTime);

    PatrolCheckPlanTimeEntity save(PatrolCheckPlanTimeEntity entity);

    List<PatrolCheckPlanTimeEntity> getAllByOrderByPlanTimeAsc();

    void deleteAllByPlanTime(Time planTime);

    Boolean existsByPlanTime(Time planTime);
}
